package com.monkeyboy.manager.redis.redissharded;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 作用：
 * redis配置
 * @author Gavin
 * @time:2018年10月5日
 */
@Component
@ConfigurationProperties(prefix="redis")
@PropertySource("classpath:settings/redissharded.properties")
@Setter
@Getter
public class RedisShardedConfig {
	private String host1;
	private int port1;
	private String host2;
	private int port2;
	private int timeout;//秒
	private String password1;
	private String password2;
	private int poolMaxTotal;
	private int poolMaxldle;
	private int poolMinIdle;
	private int poolMaxWait;//秒 
	private boolean poolTestOnBorrow;
	private boolean poolTestOnReturn;
	private boolean poolBlockWhenExhausted;
	
}
